//
//  JSTHttpClient.h
//  JSTMobClick
//
//  Created by Czj on 16/8/28.
//  Copyright © 2016年 Czj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "NSString+SNAdditions.h"
#import "JSTSystemInfo.h"



@interface JSTHttpClient : NSObject

//提交字典数据
+ (NSOperation *)sendRequest:(NSString *)url
               requestMethod:(NSString *)requestMethod
                  parameters:(NSDictionary *)parameters
                     success:(void (^)(id responseObject))success
                     failure:(void (^)(NSUInteger statusCode, NSString *error))failure;

//上传多张图片
+ (NSOperation *)sendRequest:(NSString *)url
               requestMethod:(NSString *)requestMethod
                  parameters:(NSDictionary *)parameters
                  imageArray:(NSArray *)imageArray
                     success:(void (^)(id responseObject))success
                     failure:(void (^)(NSUInteger statusCode, NSString *error))failure;

//UserAgent
+ (NSMutableDictionary *) uaDic;

@end
